package com.company;

public class Task4 {
    public static void main(String[] args) {
        //todo 4.输出9*9乘法表
        int lie = 1;
        for (int hang = 1; hang <= 9; ) {
            System.out.print(lie + "*" + hang + "=" + lie * hang + "\t");
            if (lie >= hang) {
                System.out.println();
                lie = 1;
                hang++;
            }
            else {
                lie++;
            }
        }

    }
}
